package com.ogawa.project6602.activity

import android.content.Intent
import com.alibaba.android.arouter.launcher.ARouter
import com.ogawa.base.base.BaseActivity
import com.ogawa.project6602.R
import com.ogawa.projectcommon.bean.ProjectUserInfoBean
import com.ogawa.projectcommon.constants.Constant.TYPECODE_EC_6602
import com.ogawa.projectcommon.constants.UrlPathConstant
import com.ogawa.projectcommon.utils.ProjectSpUtils
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : BaseActivity() {
    override fun getLayoutId(): Int {
        return R.layout.activity_main
    }


    override fun initView() {
        super.initView()

        ProjectSpUtils.setCurDeviceTypeCode(TYPECODE_EC_6602)
        val userInfoBean = ProjectUserInfoBean()
        val user = ProjectUserInfoBean.UserBean()
        user.id = "860"
        user.userName = "15359349628"
        user.mobile = "15359349628"
        user.email = "15359349628"
        user.platform = "healthPlatform"
        userInfoBean.user = user
        userInfoBean.token = "95f3a37bd10a4509a06fa0a14df4d20c"
        userInfoBean.loginType = "quickLogin"
        userInfoBean.isFirstLogin = false

        ProjectSpUtils.setUserInfo(userInfoBean)


        gotoMainBt.setOnClickListener {
            startActivity(Intent(mActivity, healthIndexFirstActivity::class.java))
        }
    }
}